package com.moana.buyTicket.entity;

import java.io.Serializable;
import java.sql.Date;

import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(table="M_PERSON")
public class Person implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Column(name="MP_ID")
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Integer id ;
	
	//暂时存放openId
	@Column(name="MP_NAME")
	private String name;
	
	//0:男 1：女 2：不明
	@Column(name="MP_GENDER")
	private Integer gender;
	
	@Column(name="MP_PROVINCE")
	private String province;
	
	@Column(name="MP_CITY")
	private String city;
	
	@Column(name="MP_QQ")
	private String QQ;
	
	@Column(name="MP_BLOG")
	private String blog;
	
	@Column(name="MP_CREATETIME")
	private Date createTime;
	
	//0:正常 1：未激活  2：冻结 3：销户
	@Column(name="MP_STATUS")
	private Integer status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	public String getBlog() {
		return blog;
	}

	public void setBlog(String blog) {
		this.blog = blog;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Person [ID=" + id + ", name=" + name + ", gender=" + gender
				+ ", province=" + province + ", city=" + city + ", QQ=" + QQ
				+ ", blog=" + blog + ", createTime=" + createTime + ", status="
				+ status + "]";
	}
	
	
	
}
